﻿<div id="profile-books" class="profile-books">
    <ul>
        <li>
            <a href="@(Url.Action(MVC.Profile.Show()))/<%=Login%>">Profile</a>
        </li>
        <li  class="active">
            <a href="@(Url.Action(MVC.Profile.RatedBooks()))/<%=Login%>">Rated books</a>
        </li>
        <li>
            <a href="@(Url.Action(MVC.Friends.FriendsListing()))/<%=Login%>">Friends</a>
        </li>
    </ul>
    <div>
        <div class="tool-bar">
            <div class="sorting">
                Сортировать по <a href="#" data-sort-option="Name" data-sort-direction="<%= Direction == 0? 1: 0 %>" 
                                  class="no-link <% if (Column == 'Name' && Direction == 0) {%>asc<%}%> <% if (Column == 'Name' && Direction == 1) {%>desc<%}%> <% if (Column != 'Name') {%>asc<%}%>">
                                   названию
                               </a>, 
                <a href="#" data-sort-option="DateOfPublish" data-sort-direction="<%= Direction == 0? 1: 0 %>" 
                   class="no-link <% if (Column == 'DateOfPublish' && Direction == 0) {%>asc<%}%> <% if (Column == 'DateOfPublish' && Direction == 1) {%>desc<%}%> <% if (Column != 'DateOfPublish') {%>asc<%}%>">
                    дате добавления
                </a>
            </div>
            <div class="view-type">
                Вид: <img src="~/i/icons.png" title="иконки" data-view-type="0" class="icons <% if (BookViewType == 0) {%> current <%}%>"></img>
                <img src="~/i/list.png" title="список" data-view-type="1" class="list <% if (BookViewType == 1) {%> current <%}%>"></img>
            </div>
        </div>
        <ul class="listing">
        </ul>
    </div>
</div>